<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>过渡transition</title>
</head>
<style>
    .outer {
        width: 800px;
        height: 800px;
        border: 1px solid #000;
    }

    .inner {
        height: 200px;
        width: 200px;
        background-color: indianred;

        transition: all 2s 0.1s linear;
    }

    .outer:hover .inner {
        height: 500px;
        width: 500px;
        transform: translateX(200px) rotate(30deg);
    }
</style>

<body>
    <div class="outer">
        <div class="inner"></div>
    </div>
</body>

</html>